package com.kb.spring.jpa.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kb.spring.jpa.dao.PersonRepository;

@Service
public class PersonService {
	@Autowired
	private PersonRepository personRepository;
		
	@Transactional
	public void updatePerson(String lastName,Integer age,Integer id){
		personRepository.updatePerson(age, lastName, id);
	}
}
